import {get, post, put, del} from '@/utils/request'

export function add(data) {
    return post('/home/merchant/add', data)
}

export function getInfo(page, pageSize, searchForm) {
    return get('/home/merchant/list?page=' + page + '&pageSize=' + pageSize + '&merchantName=' + searchForm.name)
}

export function update(data) {
    return put('/home/merchant/update', data)
}

export function updateStatus(data) {
    return put('/home/merchant/update-status', data)
}

export function deleteUser(id) {
    return del(`/user/delete/${id}`)
}

export function getIdAndName(serviceRegion) {
    return get('/home/merchant/get-id-and-name?serviceRegion=' + serviceRegion)
}
